import useRequest from '@/utils/request'

const request = useRequest({})
// 查询操作日志列表
export function list(query: any) {
  return request.get('/system/operlog/list', {
    params: query,
  })
}

// 删除操作日志
export function delOperlog(operId: string) {
  return request.delete('/system/operlog/' + operId)
}

// 清空操作日志
export function cleanOperlog() {
  return request.delete('/system/operlog/clean')
}
